package cn.gson.crm.model.mapper;

import cn.gson.crm.model.pojos.ExchangeGoods;
import cn.gson.crm.model.pojos.ReplacementDetails;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExchangegoodsMapper {
    //查询当前登录人换货记录
    public List<ExchangeGoods> selectexchagood(Integer eid);
    //根据时间查询换货记录
    public List<ExchangeGoods> selectetime(@Param("eid")Integer eid,@Param("statr") String statr,@Param("endtime") String endtime);
    //换货多条件查询
    public List<ExchangeGoods> selectwhere(@Param("eid")Integer eid, @Param("where") String where);
    //查详情
    public List<ReplacementDetails> selectdat(Integer eid);
    //查询所有换货单条件是已通过
    public List<ExchangeGoods> selectexc();
}
